package com.google.code.sip.ucenter.service;

import java.util.List;
import java.util.Map;

import com.google.code.sip.ucenter.model.Friend;
import com.google.code.sip.ucenter.model.FriendGroup;
import com.google.code.sip.ucenter.model.User;

public interface FriendManager {

	List<Friend> getFriends(User user);

	List<Friend> getFriends(FriendGroup friendGroup);

	Friend getFriend(User user, User friendUser);

	int getFriendsCount(User user);

	boolean isFriend(User user, User friendUser);

	void addFriend(User user, User friendUser, FriendGroup friendGroup,
			String remark);

	void deleteFriend(User user, User friendUser);

	Map<FriendGroup, List<User>> getFriendsWithMap(User user);

	void moveFriend(Friend friend, FriendGroup newFriendGroup);

}
